package com.zkw.demo;

/**
 * Created by james on 16/2/27.
 * 通过2进制进行判断
 */
public class ByteIf {
    public static final int PUBLIC = 0x00000001;
    public static boolean isPublic(int mod){
        return (mod & PUBLIC) != 0;
    }

    public static void main(String[] args) {
        int a =0x00000001;
        System.out.println(isPublic(a));
    }
}
